
local exp = class.text.create('',1100,900,120,30,10,3)
local ui1 = class.text.create('',1200,30,120,30,10,3)
local ui2 = class.text.create('',1430,30,120,30,10,3)

local ui4 = class.panel:builder 
{
    x = 1230,
    y = 815,
    w = 190,
    h = 60,
    fdf = 'tooltip_backdrop1',
    title = {
        type = 'text',
        text = '战斗力',
        font_size = 10,
        justH = "CENTER",
        justV = "MIDDLE",
        y = 5,
        h = 20,
    },
    --show_flag = false,
    text = {
        type = 'text',
        text = '0',
        font_size = 15,
        justH = "CENTER",
        justV = "MIDDLE",
        y = 15,
        h = 50,
    },
}

ac.loop(1000,function(t)
    local player = ac.player.self
    if ui1.handle==0 or ui2.handle==0 then
        t:remove()
        return
    end
    local hero = player.hero
    if hero then
        ui4.text:set_text(('%0.f'):format(hero:get('战斗力')))
    end
end)